unit UsuarioRecordFR;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  StdCtrls, ComCtrls, DBCtrls, ActnList, Buttons, MainRecordFr;

type

  { TUsuarioRecordFrame }

  TUsuarioRecordFrame = class(TMainRecordFrame)
    AlterarSenhaAction: TAction;
    BitBtn1: TBitBtn;
    Label2: TLabel;
    LoginDBEdit: TDBEdit;
    NomeDBEdit: TDBEdit;
    DBRadioGroup1: TDBRadioGroup;
    Label1: TLabel;
    procedure AlterarSenhaActionExecute(Sender: TObject);
    procedure ControlaBotoes; override;
  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

uses UsuarioDM;

{ TUsuarioRecordFrame }

procedure TUsuarioRecordFrame.ControlaBotoes;
begin
  inherited ControlaBotoes;
  AlterarSenhaAction.Enabled := AlterarAction.Enabled;
end;

procedure TUsuarioRecordFrame.AlterarSenhaActionExecute(Sender: TObject);
begin
  UsuarioData.AlteraSenha();
end;

initialization
  {$I usuariorecordfr.lrs}

end.

